package com.dwj.auto.comment.controller;


import com.dwj.auto.comment.common.response.PageResponse;
import com.dwj.auto.comment.model.req.UserRoleSearchCriteria;
import com.dwj.auto.comment.model.vo.UserRoleVo;
import com.dwj.auto.comment.service.IUserRoleService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dwjian
 * @since 2020-01-26
 */
@RestController
@RequestMapping("/api/user-role")
public class UserRoleController {

    @Resource
    private IUserRoleService userRoleService;

    @GetMapping("/search/list")
    public PageResponse<UserRoleVo> searchList(UserRoleSearchCriteria pagination){
        return userRoleService.searchList(pagination);
    }
}
